﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.IO;

namespace PV_Performance_Report
{
    class Program
    {
        static void Main(string[] args)
        {
            string path = "";
            if (args.Length == 0)
            {
                path = Environment.CurrentDirectory;
            }
            else if (args.Length == 1)
            {
                path = args[0];
            }
            else
            {
                Console.WriteLine("Invalid Parameter");
                Usage();
                Console.ReadKey(true);
                return;
            }
            //Logger.SetLogPath();
            Reportor reportor = new Reportor(path);
            reportor.Run();
            Console.ReadKey(true);
        }

        static void Usage()
        {
            string app_full_path = Process.GetCurrentProcess().MainModule.FileName;
            string app_name = Path.GetFileName(app_full_path);
            Console.WriteLine("Usage: " + app_name + " source_path");
        }
    }
}
